From cf928043f97066944de78f214414a2493495e4bd Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 26 May 2010 08:14:51 +0100 Subject: [PATCH] Allow space in vbd path name c/s 20393 breaks existing domain configuration that contains spaces in the vbd path name. Fixed by this trivial patch which provides missing quotes. Signed-off-by: Jim Fehlig --- tools/hotplug/Linux/block | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hotplug/Linux/block b/tools/hotplug/Linux/block index ff85bcb433..122e93e35b 100644 --- a/tools/hotplug/Linux/block +++ b/tools/hotplug/Linux/block @@ -272,8 +272,8 @@ mount it read-write in a guest domain." if [ "x$mode" != 'x!' ] then - inode=$(stat -c '%i' $file) - dev=$(stat -c '%D' $file) + inode=$(stat -c '%i' "$file") + dev=$(stat -c '%D' "$file") if [ -z "$inode" ] || [ -z "$dev" ] then fatal "Unable to lookup $file: dev: $dev inode: $inode" -- 2.30.2